package com.lagou.service;

import com.lagou.dao.ArticleRepository;
import com.lagou.mo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description: .
 *
 * @author Wengy
 * @since JDK 1.8
 * @since 1.0.0
 */
@Service
public class ArticleService {
    
    @Autowired
    ArticleRepository articleRepository;

    
    public Page<Article> listArticle(Pageable pageInfo ) {
       return articleRepository.findAll(pageInfo);
    }
    
}
